Repository navigation
docs(agent-device): say what the local profile needs when the worker listens on one network address - #1936
docs(agent-device): say what the local profile needs when the worker listens on one network address#1936thymikee wants to merge 2 commits into
Conversation
…listens on one network address agent-device 0.22 refuses to send a token over plain http off loopback, and 0.21.x warns. The profile already uses loopback wherever the listener is sure to answer there; a worker bound to one network address answers nowhere else, so the profile keeps naming it and the docs say what to do. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The page stated them as current behaviour, and no released agent-device has either yet. The why: comment on the profile address no longer says only a wildcard bind answers on loopback. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Summary
agent-device is adopting a credential transport rule (its ADR 0041, for 0.22): a token goes only over
httpsor loopbackhttp. Later 0.21 releases will warn about anything else and 0.22 will refuse it;AGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1overrides it. Neither has shipped yet.The same-Mac profile already uses loopback for a loopback or wildcard
http.host. With one network address, HTTP listens only there, so a loopback URL would not reach it.Choice: keep that address and document the two ways out. A second loopback listener would add a bind that can fail, open a socket the operator did not configure, and change ADR 0046 §2.
No behaviour change: user docs, one
why:comment and a test for the kept address.Validation
127.0.0.1and::1refuse. Bound to::or0.0.0.0,127.0.0.1connects.vitest run --project unit src/agent-device/local-profile.test.ts: 7 passed. The new test fails whenprofileOriginmaps every IPv4 address to loopback.mainor its 0.22 branch.Review
Spec review: skipped. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 2 blocking, 2 fixed, 0 notes.
Rounds: 2. Tokens: n/a.
One Sonnet 5.5 reviewer ran both reviews after seeing the PR body; no Opus code review ran.
Assessment: complete
🤖 Generated with Claude Code
Written by an agent.